package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.pojo.SmsFlashPromotionProductRelation;
import com.itheima.vo.SmsFlashPromotionProduct;

import java.util.List;

public interface SmsFlashPromotionProductRelationApi {
    void create(List<SmsFlashPromotionProductRelation> relationList);

    void deleteById(Integer id);

    IPage<SmsFlashPromotionProduct> list(Integer flashPromotionId, Integer flashPromotionSessionId, Integer pageNum, Integer pageSize);

    void updateById(Integer id, SmsFlashPromotionProductRelation relation);

    SmsFlashPromotionProductRelation getRelation(Integer id);
}
